
import api from './fetch/api.js'

const actions = {
  /**
   * 获取登录信息actions
   * @param {*} params username password type 1学生 2教职工
   */
  userlogin ({commit}, params) {
    console.log('进入获取登录信息actions')
    return new Promise((resolve, reject) => {
      api.minePostMsgApi('http://micapi.tfswufe.edu.cn' + '/itfer/rest/user/login', params)
      .then(res => {
        resolve(res)
      })
    })
  }
}

export default actions
